package com.cd.javacxy.common.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.cd.javacxy.common.model.enums.VoteType;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author cookie
 */
@Data
public class TopicVote {
    private Integer voteId;

    private Integer topicId;

    private VoteType voteType;

    @JSONField(format = "yyyy-MM-dd")
    private Date endDate;

    private String endDateString;

    private int sumCount;

    private List<TopicVoteDetail> topicVoteDetailList = new ArrayList<>();

    private List<TopicVoteUser> topicVoteUserList = new ArrayList<>();

    private boolean canVote;
}